package net.caidingke.shepherd.controller;

import net.caidingke.shepherd.controller.base.BasicController;
import net.caidingke.shepherd.utils.constant.GlobalConfig;
import net.caidingke.shepherd.utils.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bowen.
 */
@RestController
@RequestMapping(value = GlobalConfig.API_PRE_FIX)
public class HealthCheckController extends BasicController {

    @GetMapping("/health")
    public Result health() {
        return ok("UP");
    }
}
